package cn.iocoder.yudao.module.train.controller.admin.courseclasses.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 班级新增/修改 Request VO")
@Data
public class CourseClassesSaveReqVO {

    @Schema(description = "班级主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "25477")
    private Long id;

    @Schema(description = "班级序号")
    private Integer classNumber;

    @Schema(description = "商品ID", example = "24028")
    private Long commodityId;

    @Schema(description = "课程总课时")
    private Integer allCourseTime;

    @Schema(description = "剩余课时")
    private Integer remainderCourseTime;

    @Schema(description = "开课时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime beginTime;

    @Schema(description = "结课时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime endTime;
}
